.container {
    width: 1080px; /* 设定一个合适的宽度 */
    margin: auto; /* 让其水平居中 */
    display: flex;
    flex-direction: column; /* 使其垂直排列 */
    align-items: center; /* 确保所有子元素居中对齐 */
}

.content{
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
}
/* 左侧用户信息盒子 */
.content .left-box {
    width: 300px;
    margin: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
}

/* 用户头像 */
.user-cover {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaeaef;
}

/* 用户名 */
.user-name {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* 用户简介 */
.user-desc {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

/* 用户数据区域 */
.user-data {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eaeaef;
    border-bottom: 1px solid #eaeaef;
}

/* 每个数据块 */
.user-data dl {
    text-align: center;
}

/* 数据数值 */
.user-data dt .count {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 数据标签（原创、粉丝、获赞、收藏） */
.user-data dd {
    font-size: 14px;
    color: #777;
    margin-top: 2px;
}

/* 关注和私信按钮 */
.relate {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* 统一按钮样式 */
.relate a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
}

/* 私信按钮 */
.relate .letter {
    background-color: #5094d5;
    color: white;
    margin-right: 10px;
}

/* 关注按钮 */
.relate .follow {
    background-color: #eaeaef;
    color: #333;
}

/* 按钮悬停效果 */
.relate .letter:hover {
    background-color: #3b7bbf;
}

.relate .follow:hover {
    background-color: #d8d8df;
}

.content .right-box{
    width: 760px;
    margin: 10px;
    box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
    box-sizing: border-box;
    padding: 8px 24px 16px;
    border-radius: 2px;

}
.content .right-box .tags{
    background-color: #f8f8f8;
    border-radius: 4px;
    color: #999aaa;
    padding: 4px;
    font-size: 14px;
    line-height: 30px;
    margin-top: 8px;
    vertical-align: top;
}
.content .right-box .tags .tag{
    display: inline-block;
    box-sizing: border-box;
    margin-right: 8px;
    padding: 3px 6px;
    font-size: 12px;
    background-color: #fff;
    color: #5094d5;
    border: 1px solid #eaeaef;
    height: 24px;
    line-height: 17px;
    border-radius: 2px;
}
.article{
    margin-top: 16px;
}

/* 评论区样式 */
.comment-section {
    background-color: white;
    width: 1080px;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 20px;
    color: #555;
}

/* 单条评论样式 */
.parent-comment,
.child-comment {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

.username:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

/* 按钮样式 */
.function {
    text-align: right;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.like-comment {
    background-color: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
}

.like-comment:hover {
    background-color: #007BFF;
    color: white;
}

/* 回复框 */
.reply-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.reply-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.reply-btn {
    margin-left: 5px;
}

/* 子级评论 */
.child-comments {
    margin-left: 40px;
    border-left: 3px solid #ddd;
    padding-left: 10px;
}

.show-replies {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 5px;
    margin-top: 5px;
}

.show-replies:hover {
    background-color: #ddd;
}